<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	td{
		text-align:center; 
	}
</style>
</head>
<body>

	<center>
		<table border="1" cellspacing="0" width="50%">
			<tr>
				<th>ID</th>
				<th>名称</th>
				<th>父级菜单</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${menus }" var="menu">
				<tr>
					<td>${menu.id }</td>
					<td>${menu.name }</td>
					<td>${menu.pname }</td>
					<td><a href="/update/${menu.id }">编辑</a></td>
				</tr>	
			</c:forEach>
		</table>

	</center>
</body>
</html>